# # -*- coding: utf-8 -*-
# # from qiniu import Auth, put_file, etag
# # 需要填写你的 Access Key 和 Secret Key
# access_key = '9gyGFKmNaVctpS6a_fGmTIT4vXssd9UY7Evd_F6g'
# secret_key = '_0CCeRYqW9c4OOyQzw6FjG3AWlYOmPOXhjOOZFh6'
# # 构建鉴权对象
# # q = Auth(access_key, secret_key)
# # 要上传的空间
# bucket_name = 'dong-shou-dong-nao'
#
#
# def upload_image(localfile, key):
#     # 上传后保存的文件名
#     # key = 'my-python-logo.png'
#     # 生成上传 Token，可以指定过期时间等
#     token = q.upload_token(bucket_name, key, 3600)
#     # 要上传文件的本地路径
#     # localfile = './sync/bbb.jpg'
#     ret, info = put_file(token, key, localfile)
#     print(info)
#
#
# if __name__ == '__main__':
#     upload_image("本地文件路径", "上传到云服务器之后的名字")
